<template>
	<j-cell-group>
		<j-cell title="窗口背景透明度" :tips="fVideoGUISet.WindowAlpha" :more="false"></j-cell>
		<j-cell title="自动注销时间" :tips="fVideoGUISet.AutoLogout" :more="false"></j-cell>
		<j-cell title="设备名称" :tips="fVideoGUISet.DeviceName" :more="false"></j-cell>
		<j-cell title="时间标题显示" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.TimeTitleEnable" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="通道标题显示" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.ChannelTitleEnable" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="报警状态" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.AlarmStateEnable" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="录像状态" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.RecordStateEnable" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="通道锁定状态" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.ChanStateLckEnable" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="视频丢失状态" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.ChanStateVlsEnable" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="录像状态" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.ChanStateRecEnable" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="动检状态" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.ChanStateMtdEnable" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="码流信息" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.ChanStateBitRateEnable" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="转向" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.Deflick" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="遥控器" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.RemoteEnable" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="GPS信息" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.GPSInfo" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="导航信息" :more="false">
			<view slot="tips">
				<switch :checked="fVideoGUISet.CarInfo" disabled></switch>
			</view>
		</j-cell>
	</j-cell-group>
</template>

<script>
	export default {
		data() {
			return {
				token: '',
				fVideoGUISet: {
					WindowAlpha: '',
					AutoLogout: '',
					DeviceName: '',
					TimeTitleEnable: '',
					ChannelTitleEnable: '',
					AlarmStateEnable: '',
					RecordStateEnable: '',
					ChanStateLckEnable: '',
					ChanStateVlsEnable: '',
					ChanStateRecEnable: '',
					ChanStateMtdEnable: '',
					ChanStateBitRateEnable: '',
					Deflick: '',
					RemoteEnable: '',
					GPSInfo: '',
					CarInfo: ''
				}
			};
		}
		/**
		 * 生命周期函数--监听页面加载
		 */
		,
		onLoad: function(options) {
			this.token = options.token
			this.getconfig();
		},
		/**
		 * 生命周期函数--监听页面初次渲染完成
		 */
		onReady: function() {},
		/**
		 * 生命周期函数--监听页面显示
		 */
		onShow: function() {},
		/**
		 * 生命周期函数--监听页面隐藏
		 */
		onHide: function() {},
		/**
		 * 生命周期函数--监听页面卸载
		 */
		onUnload: function() {},
		/**
		 * 页面相关事件处理函数--监听用户下拉动作
		 */
		onPullDownRefresh: function() {},
		/**
		 * 页面上拉触底事件的处理函数
		 */
		onReachBottom: function() {},
		/**
		 * 用户点击右上角分享
		 */
		onShareAppMessage: function() {},
		methods: {
			getconfig() {
				uni.showLoading();
				let token = this.token;
				let data = {
					Name: 'fVideo.GUISet'
				};
				getApp().globalData.api.getconfig(data, token, (result) => {
					uni.hideLoading({
						success: (res) => {
							console.log(result);
							this.fVideoGUISet = result['fVideo.GUISet']
						}
					});
				});
			}
		}
	};
</script>
<style></style>
